package cn.sunshine.ymcc.fegin;

import cn.sunshine.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course",fallbackFactory = FallbackFactoryCourseUserLeanFeign.class )
public interface CourseUserLeanFeign {
    @RequestMapping(value = "/{loginId}/{courseId}",method = RequestMethod.GET)
    JSONResult checkUserpermission(@PathVariable("loginId")Long loginId,@PathVariable("courseId")Long courseId);
    // 订单服务service-order---->service-courseMarket
    @RequestMapping(value = "/course/info/{courseIds}",method = RequestMethod.GET)
    JSONResult getCourseInfosTotalAmount(@PathVariable("courseIds") String courseIds);
}
